<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div>
	<form id="infoForm" target="hiddenFrame" action="${path}/mc/regionsaveInfo" method="post" enctype="multipart/form-data">
		<input type="hidden" name="entity.id" value="${entity.id}" />
		<fieldset style="padding-left: 10px;">
			<table>
				<tr>
			  		<td>code</td>
			  		<td>
			  			<input type="text" name="entity.code" value="<c:choose><c:when test="${empty entity.code}"></c:when><c:otherwise>${entity.code}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'code不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>父id</td>
			  		<td>
			  			<input type="text" name="entity.parentId" value="<c:choose><c:when test="${empty entity.parentId}"></c:when><c:otherwise>${entity.parentId}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'父id不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>名称</td>
			  		<td>
			  			<input type="text" name="entity.name" value="<c:choose><c:when test="${empty entity.name}"></c:when><c:otherwise>${entity.name}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'名称不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>拼音</td>
			  		<td>
			  			<input type="text" name="entity.pinyin" value="<c:choose><c:when test="${empty entity.pinyin}"></c:when><c:otherwise>${entity.pinyin}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'拼音不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>级别</td>
			  		<td>
			  			<select name="entity.level" dir="${entity.level}" >
			  				<option value="1">省</option>
			  				<option value="2">市</option>
			  				<option value="3">区</option>
			  				<option value="4">街道</option>
			  			</select>
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>是否推荐</td>
			  		<td>
			  			<select name="entity.isRecommend" dir="${entity.isRecommend}" >
			  				<option value="1">推荐</option>
			  				<option value="2">不推荐</option>
			  			</select>
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>优先级</td>
			  		<td>
			  			<input type="text" name="entity.priority" value="<c:choose><c:when test="${empty entity.priority}"></c:when><c:otherwise>${entity.priority}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'优先级不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>是否禁用</td>
			  		<td>
			  			<select name="entity.disable" dir="${entity.disable}" >
			  				<option value="1">是</option>
			  				<option value="2">否</option>
			  			</select>
			  		</td>
			  	</tr>
			  	
		   </table>
		</fieldset>
	</form>
</div>
